home *** CD-ROM | disk | FTP | other *** search
- Path: news.ifm.liu.se!usenet
- From: Kjell Andersson <kand@dualheights.rydnet.lysator.liu.se>
- Newsgroups: comp.lang.c
- Subject: Re: Help with sin() - big problem
- Date: Sat, 09 Mar 1996 00:35:21 +0100
- Message-ID: <3140C439.28110DF9@dualheights.rydnet.lysator.liu.se>
- References: <4hhusi$49i@sunburst.ccs.yorku.ca>
- NNTP-Posting-Host: dualheights.rydnet.lysator.liu.se
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.1 i486)
-
- Naftali Sturm wrote:
-
- > result = sin(numb);
- >
- > result and num are both float's.
- > The problem is that when numb is 1.0, the
- > program gives me .84147 , and when numb is 45.0
- > the program gives me .85090, and each number is a different result.
- > However I took a look at my sine table in my trigonometry book, and
- > it says the sine of 1 is .018, the sine of 45 is .707, and
- > different results than what my program said.
- > Why?
-
- The problem is that you are specifying numb in degrees. Sin wants is
- argument in radians.
-